<?php defined('IN_ADMIN') or exit('No permission resources.');?>
<?php include $this->admin_tpl('header', 'admin');?>
<script type="text/javascript">
$(document).ready(function() {
	$.formValidator.initConfig({
		formid: "myform",
		autotip: true,
		onerror: function(msg, obj) {
			window.top.art.dialog({
				content: msg,
				lock: true,
				width: '200',
				height: '50'
			})
		}
	});
	$("#desc").formValidator({
		onshow: "<?php echo L('input').L('desc')?>",
		onfocus: "<?php echo L('input').L('desc')?>"
	}).inputValidator({
		min: 1,
		onerror: "<?php echo L('input').L('desc')?>"
	});

	$("#image_vertical").formValidator({
		onshow: "<?php echo L('input').L('image_vertical')?>",
		onfocus: "<?php echo L('input').L('image_vertical')?>"
	}).inputValidator({
		min: 1,
		onerror: "<?php echo L('input').L('image_vertical')?>"
	});

});
</script>
<div class="subnav">
	<div class="content-menu ib-a blue line-x">
	   <a href="./index.php?m=pass_game&c=manage&a=pass_talent&pass_id=<?php echo $pass_id;?>&name=<?php echo $name;?>" style="font-size:14px;color: #0000FF;font-weight:bolder;"><em>返回上一级</em></a>	
	</div>
</div>
<div class="pad-10">

	<form name="myform" action="?m=<?php echo ROUTE_M?>&c=<?php echo ROUTE_C?>&a=<?php echo ROUTE_A?>&talent_id=<?=$talent_id?>&pass_id=<?php echo $pass_id;?>&real_name=<?php echo $real_name;?>" method="post"
		id="myform" enctype="multipart/form-data">
		<div class="content pad-10" id="show_div_1" style="height: auto">
			<fieldset>
				<legend><?php echo $real_name?$real_name:'';?>选手信息---编辑</legend>
				<table width="100%" class="table_form">
					<tr>
						<td width="120"><?php echo '姓名';?>：</td>
						<td><?= isset($real_name)?$real_name:""?></td>
					</tr>
					<tr>
						<td width="120"><?php echo L('image_vertical')?>：</td>

						<td><?php echo form::images('data[image_vertical]', 'image_vertical', isset($data['image_vertical'])?$data['image_vertical']:"", 'pass_game', '', 40)?></td>
					</tr>
					<tr>
						<td width="120"><?php echo L('desc')?>：</td>
						<td><textarea name="data[desc]" id="desc" cols="100" rows="8" ><?php if(isset($data['desc']) ) { echo strip_tags($data['desc']);}?></textarea></td>
					</tr>
				</table>
			</fieldset>

		</div>
		<div class="bk15"></div>
		<?php if(ROUTE_M != 'information'){?>
		<input name="dosubmit" type="submit" id="dosubmit"
			value="<?php echo L('submit')?>" class="button">
		<?php }?>

	</form>

</div>
</body>
</html>